<template>
  <div class="goods">
      <goods-list-item v-for="(item,index) in goods" :key="index" :goodsItem="item" />
  

  </div>
</template>

<script>
import GoodsListItem from './GoodsListItem.vue'
export default {
  components: { GoodsListItem },
    props:{
        goods:{
            type:Array,
            default(){
                return []
            }
        }
    }

}
</script>

<style>
 .goods {
    display: flex;
    /* 换行 */
    flex-wrap: wrap;
    /* 均等分 */
    justify-content: space-around;

    padding: 2px;
  }

</style>